package io.renren.modules.app.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;


import java.math.BigDecimal;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 用户
 * 
 * @author MR.XU
 * @email 260139486@qq.com
 * @date 2021-01-19 10:47:56
 */
@Data
@TableName("tb_customer")
@ApiModel(value = "Customer对象", description = "用户")
public class CustomerEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	@TableId(value = "user_id", type = IdType.AUTO)
		@ApiModelProperty(value = "",example = "1")
private Integer userId;
	/**
	 * 用户名
	 */
		@ApiModelProperty(value = "用户名")
		@Excel(name = "用户名", orderNum = "1", width = 30)
private String username;
	/**
	 * 手机号
	 */
	@Excel(name = "手机号", orderNum = "2", width = 30)
	@ApiModelProperty(value = "手机号")
private String mobile;
	/**
	 * 头像
	 */
		@ApiModelProperty(value = "头像")
private String headimg;
	/**
	 * 密码盐
	 */
		@ApiModelProperty(value = "密码盐")
private String authSalt;
	/**
	 * 密码
	 */
		@ApiModelProperty(value = "密码")
private String password;
	/**
	 * 创建时间
	 */
	@Excel(name = "创建时间", orderNum = "3", width = 30)
	@ApiModelProperty(value = "创建时间")
		@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
		@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date createTime;
	/**
	 * 1:启用
	 */
		@ApiModelProperty(value = "1:启用",example = "1")
private Integer status;
	/**
	 * 余额
	 */
	@Excel(name = "余额", orderNum = "4", width = 30)
	@ApiModelProperty(value = "余额")
private BigDecimal balance;

	/**
	 * openid
	 */
	@ApiModelProperty(value = "微信openId")
	private String openId;

}
